package com.MinesweeperGame.client;



import java.util.Iterator;

import javax.jdo.Extent;
import javax.jdo.PersistenceManager;

import com.MinesweeperGame.server.LocalPersistanceManager;
import com.MinesweeperGame.server.MinesweeperRegistration;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class HighScores {
	
	Label Label_Heading = new Label("HighScores");
	
	Label Label_Name = new Label("UserName");
	Label Label_Score = new Label("Scores");
	
	Button Button_Ok = new Button("OK");
	
	PopupPanel popuppanel_HighScores = new PopupPanel();

	
	public HighScores() {
		
		
		
	VerticalPanel verticalPanel = new VerticalPanel();
		
		verticalPanel.add(Label_Heading);
//		absolutepanel.add(Label_Name);
//		absolutepanel.add(Label_Score);
		 verticalPanel.setSpacing(10);
		
		

		
		verticalPanel.add(Button_Ok);
		popuppanel_HighScores.add(verticalPanel);
		
		Button_Ok.addClickHandler(new ClickHandler() {
			
			@Override
			public void onClick(ClickEvent event) {
				// TODO Auto-generated method stub
				
				popuppanel_HighScores.hide();
				
			}
		});
		
		//RootPanel.get().add(flexTable);
//		popuppanel_HighScores.add(absolutepanel);
		popuppanel_HighScores.center();
		}
	
	public void show(){
		
		popuppanel_HighScores.show();
	}
}
